<?php


namespace app\common\model;


class MediaModel extends CommonModel
{
    protected $name = 'media';

    public function groupInfo(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(MediaGroupModel::class, 'group_id', 'id');
    }
}